const api = require("../../../../utils/api")
const getwxphone = require("../../../../utils/getwxphone")
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list: [{
        title: '思考在前-国考修行手册',
        fm: 'https://sd.offcn.com/zg/wximg/2022/gsk/fbook/6.png',
        lists: [{
            name: '国考博闻强“识”',
            sid: 0
          },
          {
            name: '国考向未来',
            sid: 1
          },
          {
            name: '国考招警',
            sid: 2
          },
          {
            name: '银保监会备考手册',
            sid: 3
          },
          {
            name: '证监会备考手册',
            sid: 4
          }
        ]
      },
      {
        title: '并行不悖-行测概论思维导图',
        fm: 'https://sd.offcn.com/zg/wximg/2022/gsk/fbook/4.png',
        lists: [{
          name: '并行不悖-行测概论思维导图',
          sid: 5
        }]
      },
      {
        title: '梦笔生花-文采优化200组',
        fm: 'https://sd.offcn.com/zg/wximg/2022/gsk/fbook/5.png',
        lists: [{
          name: '梦笔生花-文采优化200组',
          sid: 6
        }]
      },
      {
        title: '熟能生巧-技巧点拨36计',
        fm: 'https://sd.offcn.com/zg/wximg/2022/gsk/fbook/1.png',
        lists: [{
          name: '熟能生巧-技巧点拨36计',
          sid: 7
        }]
      },
      {
        title: '心中有方-时评精读20篇',
        fm: 'https://sd.offcn.com/zg/wximg/2022/gsk/fbook/2.png',
        lists: [{
          name: '心中有方-时评精读20篇',
          sid: 8
        }]
      },
      {
        title: '川不辞盈-国考常识300问',
        fm: 'https://sd.offcn.com/zg/wximg/2022/gsk/fbook/3.png',
        lists: [{
          name: '川不辞盈-国考常识300问',
          sid: 9
        }]
      },




    ]
  },
  topdf(e) {
    console.log(e.currentTarget.dataset.sid)
    var sid = e.currentTarget.dataset.sid;
    wx.navigateTo({
      url: '../pdf/pdf?sid=' + sid,
    })
  },


  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {},

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

   /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    const area = wx.getStorageSync('area')
    const agent = wx.getStorageSync('agent')
    const page = wx.getStorageSync('page')
    return {
      title: '2023国考考前加油包',
      path: 'pages/gk/xczl/login/login?area=' + area + '&agent=' + agent + '&page=' + page
    }
  },
  /**分享到朋友圈*/
  onShareTimeline: function () {
    const area = wx.getStorageSync('area')
    const agent = wx.getStorageSync('agent')
    const page = wx.getStorageSync('page')
    return {
      title: '2023国考考前加油包',
      path: 'pages/gk/xczl/login/login?area=' + area + '&agent=' + agent + '&page=' + page
    }
  }
})